
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title></title>
</head>

<body>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
// 规避微信安全域名问题
var getQueryString = function(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
	var r = window.location.search.substr(1).match(reg);
	if (r != null)
		return decodeURI(r[2]);
	return null;
}

//引导用户授权
debugger;
var act = getQueryString("act");
var fromOpenId = getQueryString("f");
alert(window.location.href);
var targetUrl = decodeURIComponent(getQueryString("_p"));
var newUrl = targetUrl+'&act='+act+'&f='+fromOpenId;
alert('newUrl:'+newUrl);
window.location.href = "http://hellofuc1.ngrok.jiyuwenhua.cn/wx/jump/go?url="+newUrl;

 
</script>
</body>
</html>